package p13.p1304;

public class StringBufferDemo {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer();
        sb.append("hello").append("world").append("java");
        System.out.println("sb = " + sb);
        //System.out.println(sb.deleteCharAt(1));
     //   System.out.println(sb.delete(5,10));
        System.out.println("=====");
      //  System.out.println(sb.delete(0,sb.length()));
        System.out.println(sb.replace(5,10,"节日快乐"));
    }
}
